<#include "/common/pagerForm.html"> 
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>


<form name="equipmentCondition" rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <input type="hidden" id="advancedStatus" name="advancedStatus"
                value="${condition.advancedStatus!''}" />
    <div class="pageHeader">
        <div class="searchBar poStatus">
        <ul class="searchContent">
            <li>
                    <label><@label key="equipmentCode.C,colon">设备编号：</@label></label>
                      <input class="look" id="equipmentLookup.equipmentCode" name="equipmentCode" type="text" postField="equipmentCode" suggestFields="equipmentCode,equipmentText" 
                    suggestUrl="${rc.getContextPath()}/manage/equipment/equipmentSuggest" lookupGroup="equipmentLookup" value="${condition.equipmentCode!''}"
                    warn="<@label key='equipmentCode.C,doesNotExist.C'>设备编号不存在</@label>"  remote="${rc.getContextPath()}/manage/equipment/validateEquipmentCodeForSelect"/>
                    <a class="btnLook" href="${rc.getContextPath()}/manage/equipment/equipmentLookUp" rel="equipmentLookup_dialog" width="700" height="450" lookupGroup="equipmentLookup" title="<@label key='queryEquipment.D'>设备选择</@label>"></a>
            </li>
            <li>
                    <label><@label key='equipmentText.C,colon'>设备描述：</@label></label>
                    <input id="equipmentLookup.equipmentText"  size="22" type="text" maxlength="60" name="equipmentText" value="${condition.equipmentText!''}" />
            
            </li>
            <li>
                    <label><@label key='inspectResultFlag.C,colon'>点检结果</@label></label>
                    <select name="inspectResultFlag">
                            <option value=""><@label key='select.C'>所有：</@label></option>
                            <option value="0"<#if condition.inspectResultFlag?? && condition.inspectResultFlag == 0> selected="selected"</#if>>OK</option>
                            <option value="1"<#if condition.inspectResultFlag?? && condition.inspectResultFlag == 1> selected="selected"</#if>>NG</option>
                    </select>
            
            </li>
            <li class="query">
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            <@label key='query.B'>查询</@label>
                        </button>
                    </div>
                </div>
            </li>
            <li class="advancedQuery" >            
                <a id="advancedQuery"href="javascript:void(0);"   onclick="openAdvanced(navTab.getCurrentPanel())">
                    <@label key="advancedQuery.C">高级查询</@label>
                </a>
                <span  onclick="openAdvanced(navTab.getCurrentPanel());"></span>            
            </li>
        </ul>
        <ul class="searchContent">
                <li style="text-align:left;">
                    <img style="vertical-align:middle;" src="../images/green-yuan.png" style="heigth: 20px;"/>--OK&nbsp;&nbsp;
                    <img style="vertical-align:middle;" src="../images/red-yuan.png" style="heigth: 20px;"/>--NG&nbsp;&nbsp;
                </li>
        </ul>
        
    </div>
    </div>
<div id="collapsablePanel" style="display:none;"class="pageHeader" >
    <div class="searchBar">
            <ul class="searchContent">
            <li>
                <label>
                    <@label key='createDateTime.C,colon'>创建日期从：</@label>
                </label>
            
                    <input type="text" class="date" readonly="readonly" size="17" max_Date="{maxCreateDateTime}"  name="minCreateDateTime" value="${condition.minCreateDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>
                <label>
                    <@label key="to.C,colon">至：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17" min_Date="{minCreateDateTime}" name="maxCreateDateTime"  value="${condition.maxCreateDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>
                <label>
                    <@label key='memo.C,colon'>备注：</@label>
                </label>
                <input type="text" name="memo" value="${condition.memo!''}"/>
            </li>
        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='modifyDateTime.C,colon'>修改日期从：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17"  max_Date="{maxModifyDateTime}" name="minModifyDateTime" value="${condition.minModifyDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
            <li>    
                <label>
                    <@label key="to.C,colon">至：</@label>
                </label>
                
                    <input type="text" class="date" readonly="readonly" size="17" min_Date="{minModifyDateTime}" name="maxModifyDateTime"  value="${condition.maxModifyDateTime!''}"/>
                    <a class="inputDateButton" href="javascript:;">选择</a>
            </li>
        </ul>
        <ul class="searchContent">
            <li>
                <label>
                    <@label key='createUser.C,colon'>创建人：</@label>
                </label>
                <input type="text" name="createUser" value="${condition.createUser!''}"/>
            </li>
            <li>
                <label>
                    <@label key='modifyUser.C,colon'>修改人：</@label>
                </label>
                <input type="text" name="modifyUser" value="${condition.modifyUser!''}"/>
            </li>
            </ul>
    </div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="spotInspection_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="650" height="315" rel="spotInspection_tab"  href="${rc.getContextPath()}/manage/spotInspection/addSpotInspection?navTabId=${navTabId!''}"title="<@label key='addInspectionRecord.D'>新增点检记录</@label>"><span><@label key="add.B">新增</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="spotInspection_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="650" height="415" rel="spotInspection_tab" 
            href="${rc.getContextPath()}/manage/spotInspection/modifySpotInspection?id={spotInspection_id}&navTabId=${navTabId!''}"title="<@label key='editInspectionRecord.D'>编辑点检记录</@label>"><span><@label key="edit.B">编辑</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="spotInspection_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="650" height="415" rel="equipment_tab"
            href="${rc.getContextPath()}/manage/spotInspection/viewSpotInspection?id={spotInspection_id}&navTabId=${navTabId!''}"title="<@label key='viewInspectionRecord.D'>点检记录详情</@label>"><span><@label key="view.B">详情</@label></span></a></li></@buttonRight>
             <@buttonRight menuCode="spotInspection_del" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/spotInspection/deleteSpotInspection?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelSpotInspection.M'>确认要删除选择的设备状态吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="160">
        <thead>
            <tr>
                <th width="25"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="120" orderField="equipmentCode"<#if (page.orderField?? && page.orderField == 'equipmentCode')>class="${page.orderDirection!''}"</#if>><@label key='equipmentCode.C'>设备编号</@label></th>
                <th width="120" orderField="equipmentText"<#if (page.orderField?? && page.orderField == 'equipmentText')>class="${page.orderDirection!''}"</#if>><@label key='equipmentText.C'>设备名称</@label></th>
                <th width="80" orderField="useDepartment"<#if (page.orderField?? && page.orderField == 'useDepartment')>class="${page.orderDirection!''}"</#if>><@label key="useDepartment.C">使用部门</@label></th>
                <th width="80" orderField="location"<#if (page.orderField?? && page.orderField == 'location')>class="${page.orderDirection!''}"</#if>><@label key='location.C'>位置</@label></th>
                <th width="50" orderField="inspectResultFlag"<#if (page.orderField?? && page.orderField == '"inspectResultFlag"')>class="${page.orderDirection!''}"</#if>><@label key='inspectResultFlag.C'>点检结果</@label></th>
                <th width="120" orderField="inspectDateTime"<#if (page.orderField?? && page.orderField == 'inspectDateTime')>class="${page.orderDirection!''}"</#if>><@label key='inspectDateTime.C'>点检时间</@label></th>
                <th width="80" orderField="memo"<#if (page.orderField?? && page.orderField == 'memo')>class="${page.orderDirection!''}"</#if>><@label key='memo.C'>备注</@label></th>
                <th width="100" orderField="createUser"<#if (page.orderField?? && page.orderField == 'createUser')>class="${page.orderDirection!''}"</#if>><@label key="createUser.C">创建人</@label></th>
                <th width="100" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="createDateTime.C">创建时间</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as spotInspection>
            <tr target="spotInspection_id" rel="${spotInspection.id!''}">
                <td><input name="ids" value="${spotInspection.id!''}" type="checkbox"></td>
                <td>${page.startRow + spotInspection_index}</td>
                <td>${spotInspection.equipmentCode!''}</td>
                <td>${spotInspection.equipmentText!''}</td>
                <td>${spotInspection.useDepartment!''}</td>
                <td>${spotInspection.location!''}</td>
                <td><#if spotInspection.inspectResultFlag??&&spotInspection.inspectResultFlag==0>
                <img style="vertical-align:middle;" src="../images/green-yuan.png" style="heigth: 20px;" title="OK"/>
                <#else><img style="vertical-align:middle;" src="../images/red-yuan.png" style="heigth: 20px;" title="NG"/></#if></td> 
                <td>${(spotInspection.inspectDateTime?string("yyyy-MM-dd HH:mm"))?if_exists}</td>
                <td>${spotInspection.memo!''}</td>
                <td>${spotInspection.createUser!''}</td>
                <td>${(spotInspection.createDateTime?string("yyyy-MM-dd HH:mm"))?if_exists}</td>
            </tr>
        </#list>
        <#else>
        <tr target="production_id">
                <td colspan="20" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="production_id">
                <td colspan="20" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>







<script type="text/javascript">
$(function() {
    initAdvancedQuery(navTab.getCurrentPanel());
});


</script>
